local M = {}
local log = require("lvim.core.log")


--- 信息日志
--- @param msg any 日志消息
--- @param event any 事件名称 (可选)
M.info = function(msg, event)
  log:info(msg, event)
end

--- 错误日志
--- @param msg string 日志消息
--- @param event string|nil 事件名称 (可选)
M.error = function(msg, event)
  log:error(msg, event)
end

--- 警告日志
--- @param msg string 日志消息
--- @param event string|nil 事件名称 (可选)
M.warn = function(msg, event)
  log:warn(msg, event)
end

--- 调试日志
--- @param msg string 日志消息
--- @param event string|nil 事件名称 (可选)
M.debug = function(msg, event)
  log:debug(msg, event)
end

return M
